package com.weipt.lambda;

import java.util.*;

/**
 * @program: Learning
 * @description:
 * @Company: 汇华(北京)信息咨询服务有限公司
 * @author: peter.wei
 * @create: 2020-08-14 10:28
 **/
public class TestForeach {
    public static final List<Map<String, String>> LIST_TEMP= new ArrayList<>();
    public static final Map<String, String> MAP = new HashMap<>();

    public static void main(String[] args) {
        MAP.put("1", "weipt");
        LIST_TEMP.add(MAP);
        LIST_TEMP.stream().forEach(
                e->{
                    e.put("2","peter");
                    e.put("3", "maven");
                }
        );
        System.out.println(LIST_TEMP.toString());
    }
}